package com.itheima.sc.api.pms;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.sc.pojo.pms.SkuStock;

import java.util.List;

public interface SkuStockApi extends IService<SkuStock> {
    //批量更新sku库存信息
    void updateByPid(Integer pid, List<SkuStock> skuStockList);
    //根据商品ID及sku编码模糊搜索sku库存
    List<SkuStock> getByPid_skuCode(Integer pid, String keyword);

    List<SkuStock> getByPid(Integer id);

    void removeByPid(Integer pid);
}
